pip install websockets
mkdir -p ~/workspace
cd ~/workspace
wget https://nodejs.org/dist/v20.13.1/node-v20.13.1-linux-arm64.tar.xz
tar -xvf node-v20.13.1-linux-arm64.tar.xz
export PATH=/root/workspace/node-v20.13.1-linux-arm64/bin:$PATH
echo 'export PATH=/root/workspace/node-v20.13.1-linux-arm64/bin:$PATH' >> ~/.bashrc
npm i -g cnpm
cnpm i -g electron@36.5.0
git clone https://gitee.com/lepi-project/lepi-gui-unihiker
# git clone https://gitee.com/unihiker/unihiker-aidemo
cd lepi-gui-unihiker
unzip Lepi_Data.zip  -d ~
cd app
cnpm i
cd ../server
cnpm i
cd ..
# electron server.js --no-sandbox
cp start.sh ~
cp gui.service /etc/systemd/system
systemctl enable --now gui.service
